package com.alisls.activiti.service.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import java.util.Date;

/**
 * 工作流模型对象
 *
 * @author Ke Wang
 */
@TableName(value = "act_re_model")
@Getter
@Setter
@ToString
public class ActReModel {

    @TableField(value = "id_")
    private String id;

    @TableField(value = "name_")
    @NotEmpty(message = "模型名称不能为空")
    @Length(min = 3, max = 20, message = "模型名称长度介于2~50字符直接")
    private String name;

    @TableField(value = "key_")
    private String key;

    @TableField(value = "CATEGORY_")
    private String category;

    @TableField(value = "DEPLOYMENT_ID_")
    private String deploymentId;

    @TableField(value = "META_INFO_")
    private String metaInfo;

    @TableField(value = "rev_")
    private Integer erv;

    @TableField(value = "EDITOR_SOURCE_VALUE_ID_")
    private String editorSourceValueId;

    @TableField(value = "EDITOR_SOURCE_EXTRA_VALUE_ID_")
    private String editorSourceExtraValueId;

    @TableField(value = "VERSION_")
    private Integer version;

    @TableField(value = "TENANT_ID_")
    private String tenantId;

    @TableField(value = "LAST_UPDATE_TIME_")
    private Date lastUpdateTime;

    @TableField(value = "CREATE_TIME_")
    private Date createTime;
}
